<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Uint_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uint_id" data-rule="required" data-source="car/Unit/index" class="form-control selectpage" name="row[uint_id]" data-field="name" type="text" value="{$row.uint_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trip_rep')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::switcher('row[trip_rep]', $row['trip_rep'], ['color'=>'success'])}
            <!--<textarea id="c-trip_rep" class="form-control " rows="5" name="row[trip_rep]" cols="50">{$row.trip_rep}</textarea>-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carinfo_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carinfo_id" data-rule="required" data-source="car/carinfo/index" class="form-control selectpage" data-field="car_number" name="row[carinfo_id]" type="text" value="{$row.carinfo_id}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dir_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dir_id" data-rule="required" data-source="car/driver/index" class="form-control selectpage" data-field="uid" name="row[dir_id]" type="text" data-init="{$row.dir_id}">
                </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Check')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::switcher('row[check]','1', ['color'=>'success'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="stateList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" class="form-control" name="row[remarks]" type="text" value="{$row.remarks}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
